package com.ys.enume.base;

//批量导入日志表
public class TsBatchImportLogEnum {

    //导入表单类型
	public enum InfoType {
        TOS_ProductBasis("HW商品库", 1),
        TOS_ProductActive("HW商品listing库", 2),
        TP_ProductBasis("商品库", 3),
        TP_ProductBasisComponent("商品库子件", 4),
        ;
		public String name;
		public Integer value;

		private InfoType(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (InfoType e : InfoType.values()) {
				if (e.value == value) {
					return e.name;
				}
			}
			return "";
		}
	}




	//导入状态
    public enum ImportState {
        NO("未导入", 0),
        SUCCESS("成功", 1),
        FAIL("失败", 2),
        ;
        public String name;
        public Integer value;

        private ImportState(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public static String getName(int value) {
            for (ImportState e : ImportState.values()) {
                if (e.value == value) {
                    return e.name;
                }
            }
            return "";
        }
    }


}
